<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:a4j="http://richfaces.org/a4j">
  
<h:body>
<h1>See your friend's packet</h1>
	<h:form>
		<p:panel header="Packet">
			<h:panelGrid columns="1" id="regGrid">
				<h:outputLabel for="id">id</h:outputLabel>
				<p:inputText id="id" value="#{VisualizationBean.id}" />
				<p:message for="id" />
					<h3>Packet</h3>
					<h4>#{VisualizationBean.temp}</h4>
					<h3>Attractions</h3>
					<h:dataTable value="#{VisualizationBean.temp1}" var="item">
					<h:column>#{item}</h:column>
				</h:dataTable>
					<h3>Flights</h3>
					<h:dataTable value="#{VisualizationBean.temp2}" var="item">
					<h:column>#{item}</h:column>
				</h:dataTable>
			</h:panelGrid>
				<p:commandButton value="See" update="regGrid"
				action="#{VisualizationBean.seeExternalPacket()}" />
				
	
		</p:panel>
		
		
		<h:link outcome="/register" value="if you like it, register!" /> <br />
		
	</h:form>
</h:body>
</html>